import java.util.Arrays;

public class text3 {
	public void b_to_s() {
		int[] a = {20,10,50,40,30,70,60,80,90,100};
		int temp;
		for(int i = 0;i <a.length-1;i++) {
			for(int j = 0;j < a.length-i-1;j++) {
				if(a[j]>a[j-1]) {
					temp = a[j];
					a[j] = a[j-1];
					a[j-1] = temp;
				}
			}
			
		}
		System.out.println(Arrays.toString(a));
	}
}
